Paned¶
Paned is a view that can hold two children. The two children can either be View
or
Element
.
-
class
Aduct.Views.Paned.
Paned
(**kwargs)¶ Makes a paned based on given properties. Its default name is aduct-paned
Parameters: **kwargs – The keyword arguments to be passed to Gtk.Paned
from whichPaned
is made.-
add_child
(child, position=0)¶ Adds the child to paned.
When
position
is 1 or 2,child
is added at panel 1 or 2 ofself
respectively. When it is 0,child
is added to the first available panel. When it is neither of specified values, nothing is done.Parameters: Raises: ValueError
– Raised whenself
already has a child.
-
get_props
()¶ Gets the interface properties.
Returns: A dictionary with interface properties. Return type: dict
-
remove_child
(child)¶ Removes the given child from
self
.Parameters: child ( View
orElement
) – The child which has to be removed fromself
.Raises: ValueError
– Raised whenchild
is not present inself
.
-
replace_child
(old_child, new_child)¶ Replaces the existing child with a new child.
Parameters: Raises: ValueError
– Raised whenold_child
is not inself
.
-
set_from_props
(props)¶ Sets the interface from given properties.
Parameters: props ( dict
) – The dictionary containig properties of interface.
-
type
¶ Used by autodoc_mock_imports.
-